class CreateIntervalsTable < ActiveRecord::Migration
  def self.up
    create_table :intervals do |t|
      t.column :start_time, :datetime, :null => false
      t.column :end_time,   :datetime
      t.column :user_id,    :integer,  :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :intervals
  end
end
